import express from 'express'
import * as commentTool from "../../controllers/comment.js";
let router = express.Router();

router.get("/search", async (req, res) => {
    let { page, perpage } = req.query;
    let data = await commentTool.selectCommentSearch(page, perpage);
    res.send({
        code: 200,
        msg: "获取成功",
        data
    })
})

export default router;

